
project(model2Cpp_tests_basic_cpp11)
cmake_minimum_required(VERSION 2.8)


#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  -std=c++03 -g -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  -std=c++11 -g -Wall")
set(CMAKE_C_COMPILER gcc-472)
set(CMAKE_CXX_COMPILER g++-472)

# this root directory of boost installation contains include/ and lib/
set(BOOST_ROOT /opt/boost_1_53_0)

# might need to give the short version number
#set(Boost_ADDITIONAL_VERSIONS "1.49")
set(Boost_DEBUG OFF)
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_STATIC_RUNTIME OFF)
set(Boost_USE_MULTITHREADED ON)
find_package( Boost 1.48.0 REQUIRED COMPONENTS system thread unit_test_framework)
include_directories(${Boost_INCLUDE_DIRS})

file(GLOB MSRC source/*.cpp source/*/*.cpp source/*/*/*.cpp)
file(GLOB SRCS *.cpp src/*.cpp)


include_directories(include)

add_executable(${PROJECT_NAME}
	${SRCS}
	${MSRC}
)

target_link_libraries(${PROJECT_NAME}
        ${Boost_LIBRARIES}
)

enable_testing()

include(Dart)

add_test(${PROJECT_NAME} ${PROJECT_NAME})

